/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 顶栏幻灯片样式 */
.header {
    position: relative;
    height: 500px;
    overflow: hidden;
    /* 移除置顶效果，让幻灯片正常滚动 */
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.main-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 幻灯片控制按钮 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 幻灯片指示器 */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 导航菜单样式 */
.navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    /* 保持置顶效果，菜单栏始终可见 */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover {
    background: #f0f0f0;
    color: #333;
    transform: translateY(-2px);
}

.nav-item.active {
    background: #007bff;
    color: white;
}

.nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    /* 为置顶菜单栏留出空间 */
    padding-top: 60px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

/* 照片展示样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.photo-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .photo-thumbnail img {
    transform: scale(1.05);
}



.item-info {
    padding: 20px;
}

.item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.item-info p {
    color: #666;
    margin-bottom: 5px;
}

/* 文章展示样式 */
.articles-container {
    display: grid;
    gap: 30px;
}

.article-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-3px);
}

.article-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-excerpt {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.read-more {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.article-item:hover .read-more {
    color: #0056b3;
}

/* 视频展示样式 */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}







.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.video-info p {
    color: #666;
    margin-bottom: 5px;
}

/* 美术作品展示样式 */
.artworks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.artwork-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.artwork-item:hover {
    transform: translateY(-5px);
}

.artwork-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.artwork-info {
    padding: 20px;
}

.artwork-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.artwork-info p {
    color: #666;
    margin-bottom: 5px;
}

/* 科技项目展示样式 */
.projects-container {
    display: grid;
    gap: 40px;
}

.project-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-item {
        flex: 1;
        min-width: 120px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .artworks-container {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 20px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .nav-item .icon {
        font-size: 1.2rem;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
}
